package com.igeek.collateral.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.igeek.collateral.entity.Inbound;

import com.baomidou.mybatisplus.extension.service.IService;
import com.igeek.collateral.vo.PageQueryVO;
import com.igeek.collateral.vo.ZInboundVo;

/**
 * <p>
 * 入库记录 服务类
 * </p>
 *
 * @author author
 * @since 2024-07-04
 */
public interface IInboundService extends IService<Inbound> {

    boolean update(Inbound io, Integer collateral);

    boolean add(Inbound inbound, Integer collateralId);

    Page<Inbound> findPageZ(PageQueryVO vo);

    Page<Inbound> findPageR(PageQueryVO vo);

    Page<Inbound> findPageIn(PageQueryVO vo);

    boolean delete(Long id);

    Page<Inbound> findPageAll(PageQueryVO vo);

    boolean updateRS(Inbound inbound, Integer collateralId);


    boolean updatePart(ZInboundVo vo,Integer inboundId);

    int check(Integer collateralId);

    boolean deleteMessByCid(Integer collId);
}
